package com.qijian.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qijian.system.domain.ExpireData;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * 超期数据Mapper接口
 *
 * @author qijian
 * @date 2023-10-18
 */
public interface ExpireDataMapper extends BaseMapper<ExpireData> {

    void batchInsertUpdate(@Param("list") List<ExpireData> list);

    void batchInvalid(@Param("ids")Collection<Long> ids,@Param("emailType") String emailType);

    void resetInvalidSourceExpireDate(@Param("emailType") String emailType,
                                      @Param("ids") List<Long> sourceDataList,
                                      @Param("expireDays") long expireDays);
}
